package com.own.component.util.excel.util.write;

import com.own.component.util.excel.util.write.record.ExcelRecord;
import lombok.extern.slf4j.Slf4j;

/**
 * ExcelWrite （最小的x,y都是1）
 *
 * @author chenxueli
 * @date 2022-06-15 03:14:15
 */
@Slf4j
public final class ExcelWrite {

    /**
     * 构造excel
     *
     * @param fileName 文件名
     * @return excel
     */
    public static ExcelRecord build(String fileName) {
        return new ExcelRecord(fileName, true);
    }

    /**
     * 构造excel
     *
     * @param fileName 文件名
     * @param addSheet 是否新增一个sheet
     * @return excel
     */
    public static ExcelRecord build(String fileName, boolean addSheet) {
        return new ExcelRecord(fileName, addSheet);
    }

}
